<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>二级分类页面</title>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/common.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/ej_class.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/gwc.css" />
<script src="<%=request.getContextPath() %>/js/jquery-1.11.2.min.js"></script>
<script type="text/javascript">




</script>

</head>
<body>
<%@include file="menu.jsp" %>
<div class="w_980 m">
  <div class="pos fl_l ma_t10"><a href="#">首页</a> > <a href="#">礼品箱包、钟表首饰</a> > <a href="#">时尚男包</a> > BOSSSUNWEN博斯绅威男士横款钱包高档礼盒S9... </div>
  <div class="w_980 fl_l">
  		<div class="gwc_pos first">
                  <div class="sel fl_l">1.我的购物车</div>
                  <div class="un fl_l">2.填写核对订单信息</div>
                  <div class="un fl_l">3.成功填写订单</div>                
            </div>            
  </div>
    <div class="gwc_logo g_first fl_l">我的购物车</div>
   
   <c:if test="${cart.cartItems.size()!=0}">
	    <div class="w_978 fl_l bor">
	              <div class="title">我挑选的商品</div>
	              <div class="gwc_c">
	                <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" class="gwc_table">
	                  <tr>
	                    <td width="10%" class="title">商品编号</td>
	                    <td width="36%" class="title">商品名称</td>
	                    <td width="11%" class="title">市场价</td>
	                    <!-- <td width="9%" class="title">本站价</td> -->
	                    <td width="10%" class="title">数量</td>
	                    <td width="11%" class="title">小计</td>
	                    <td width="13%" class="title">操作</td>
	                  </tr>
	                  <c:forEach items="${cart.cartItems}" var="l">
		                  <tr>
		                    <td><img src="<%=request.getContextPath() %>/${l.product.image}" width="45" height="45" /><p>${l.product.pid}</p><input type="hidden" name="pid" value="${l.product.pid}"></td>
		                    <td class="content_l"><a href="#">${l.product.pname}</a></td>
		                    <td>￥${l.product.marketPrice}元</td>
		                    <!-- <td class="font_red">￥1399 元</td> -->
		                   <%--  <td><span class="fl-l"><a href=" "><img src="<%=request.getContextPath() %>/images/bag_close.gif" width="9" height="9" style="margin-right: 15px;margin-top: 10px"/></a></span><span class="fl-l"><input name="textfield2" type="text" class="num" id="textfield" value="1" size="8" /></span><span class="fl_l"><a href=" "><img src="<%=request.getContextPath() %>/images/bag_open.gif" width="9" height="9" /></a></span></td> --%>
		                    <td><span><a href=" " onclick="removeC()"><img src="<%=request.getContextPath() %>/images/bag_close.gif" width="9" height="9" /></a></span>
		                    <span class="fl-l"><input name="counts" type="text" class="num" id="textfield" value="${l.count}" size="8" /></span>
		                    <span><a href=" " onclick="add()"><img src="<%=request.getContextPath() %>/images/bag_open.gif" width="9" height="9" /></a></span></td>
		                    <td>￥${l.subTotal}元</td>
		                    <td><a href="<%=request.getContextPath() %>/carts/removeCartItem?pid=${l.product.pid}">删除</a> <a href="#">放入收藏夹</a></td>
		                  </tr>
	                  </c:forEach>
	                  <tr>
	                    <td colspan="7" class="te_r">商品总金额（不含运费）：<span class=" redfont font_c_14">￥${cart.total}</span> 元</td>
	                  </tr>
	                  <tr>
	                    <td colspan="7" class="content_bot"><span class="fl_l" style=" padding:12px 0 0 6px;"><a href="<%=request.getContextPath() %>/carts/clearCart"><input name="" type="button" class="qk_gwc_bt" value="清空购物车" /></a> <input name="" type="button" class="gx_gwc_bt" value="更新购物车" /></span><span class="fl_r"><a href="http://localhost/lk/wel/toIndex"><img src="<%=request.getContextPath() %>/images/jxgw.gif" width="110" height="37" /></a> <a href="#"><img src="<%=request.getContextPath() %>/images/payment.gif" width="110" height="37" /></a>&nbsp;</span></td>
	                  </tr>
	                </table>
	      </div>
	      </div>
      </c:if>
      <c:if test="${cart.cartItems.size()==0}">
	      <div class="w_978 fl_l bor">
	      	<span style="color: red;font-size: 20px">亲，还未添加商品进购物车呢？</span>
	      </div>
      </c:if>
    <%-- <div class="w_978 fl_l bor ma_t10">
        <div class="title"><span class="font_c_14">我收藏的商品</span>(现在就放入购物车吧！)</div>
        <div class="collect">
            <ul>
            <li>
                  <p class="pic_100 fl_l"><img src="<%=request.getContextPath() %>/images/pic100.jpg" width="100" height="100" /></p>
                  <p class="t"><a href="#">索尼爱立信索爱索爱W995W995C</a></p>
                  <p class="t redfont">￥1399 </p>
                  <p class="t"><input name="" type="button" class="ad_gwc_bt" value="加入购物车" /> <input name="" type="button" class="del_bt" value="删除" /></p>
                </li>
            <li>
                  <p class="pic_100 fl_l"><img src="<%=request.getContextPath() %>/images/pic100.jpg" width="100" height="100" /></p>
                  <p class="t"><a href="#">索尼爱立信索爱索爱W995W995C</a></p>
                  <p class="t redfont">￥1399 </p>
                  <p class="t"><input name="" type="button" class="ad_gwc_bt" value="加入购物车" /> <input name="" type="button" class="del_bt" value="删除" /></p>
                </li>
            <li>
                  <p class="pic_100 fl_l"><img src="<%=request.getContextPath() %>/images/pic100.jpg" width="100" height="100" /></p>
                  <p class="t"><a href="#">索尼爱立信索爱索爱W995W995C</a></p>
                  <p class="t redfont">￥1399 </p>
                  <p class="t"><input name="" type="button" class="ad_gwc_bt" value="加入购物车" /> <input name="" type="button" class="del_bt" value="删除" /></p>
                </li>                                                
             </ul>
          </div>
    </div> --%>
  <div class="bottom fl_l ma_t10">
    <div class="footlink">
      <div class="footlinkt">配送范围</div>
      <ul>
        <li><a href="">上海 |  北京 |  其他地区</a></li>
        <li><a href="">配送费收取标准</a></li>
      </ul>
    </div>
    <div class="footlink">
      <div class="footlinkt">服务说明</div>
      <ul>
        <li><a href="">付款方式</a></li>
        <li><a href="">服务协议 </a></li>
      </ul>
    </div>
    <div class="footlink">
      <div class="footlinkt">我的订单</div>
      <ul>
        <li><a href="">查询订单</a></li>
        <li><a href="">如何下订单</a></li>
      </ul>
    </div>
    <div class="footlink">
      <div class="footlinkt">售后服务</div>
      <ul>
        <li><a href="">退换货原则</a></li>
        <li><a href="">在线客服区</a></li>
        <li><a href="">在线客服区</a></li>
      </ul>
    </div>
    <div class="footlink">
      <div class="footlinkt">需要帮助</div>
      <ul>
        <li><a href="">忘记密码</a></li>
        <li><a href="">常见问题</a></li>
        <li><a href="">联系客服人员</a></li>
        <li><a href="">抵用券使用说明</a></li>
      </ul>
    </div>
  </div>
  <div class="w_980 fl_l ma_t10">
    <ul class="footerpic1">
      <li><a href=" "><img src="<%=request.getContextPath() %>/images/wmjl.jpg" width="217" height="49" /></a></li>
      <li><a href=" "><img src="<%=request.getContextPath() %>/images/mbby.jpg" width="217" height="49" /></a></li>
      <li><a href=" "><img src="<%=request.getContextPath() %>/images/gkzs.jpg" width="217" height="49" /></a></li>
    </ul>
  </div>
  <div class="w_980 fl_l ma_t10 te_m">关于我们 | 联系我们 | 人才招聘 | 商家入驻 | 广告服务 | 移动终端 | 友情链接 | 销售联盟 <br />
    北京市公安局海淀分局备案编号：11010233381  京ICP证070的4523号 <br />
    Copyright2004-2011  五金商城 版权所有</div>
  <div class="w_980 fl_l ma_t10">
    <ul class="footerpic">
      <li><a href=" "><img src="<%=request.getContextPath() %>/images/footer_pic_04.gif" width="91" height="31" /></a></li>
      <li><a href=" "><img src="<%=request.getContextPath() %>/images/footer_pic_05.gif" width="91" height="31" /></a></li>
      <li><a href=" "><img src="<%=request.getContextPath() %>/images/footer_pic_06.gif" width="91" height="31" /></a></li>
      <li><a href=" "><img src="<%=request.getContextPath() %>/images/footer_pic_07.gif" width="91" height="31" /></a></li>
      <li><a href=" "><img src="<%=request.getContextPath() %>/images/footer_pic_09.gif" width="91" height="31" /></a></li>
      <li><a href=" "><img src="<%=request.getContextPath() %>/images/footer_cnnic.jpg" width="91" height="31" /></a></li>
    </ul>
  </div>
</div>
</body>
</html>
    